home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 December
/
Chip_2001-12_cd1.bin
/
zkuste
/
tuning
/
download
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ Windows Key 1.xpl
< prev
next >
Wrap
Text File
|
2001-04-13
|
2KB
|
57 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="1"
"UIPATH 1"="Hardware\Keyboard"
"NAME"="Enable Windows Keys"
"LANGUAGE"="VBScript"
"TEXT 1"="Enable Windows Keys"
"DESCRIPTION 1"="If you have a keyboard with the two Windows keys, you can use these to access common Windows functions more quickly."
"DESCRIPTION 2"="If you want, you can disable these keys, by clearing the box above."
"COMMENT 1"="Thanks to CptSiskoX for the plug-in suggestion."
"VERSION"="1.13"
"AUTHOR"="Neil R. Turner and CptSiskoX (Xteq Systems)"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved."
"OSVERSION"="111111"
"CONTACTURL"="http://www.128moorlane.freeserve.co.uk/"
'Declaration of some constants
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWinKeys"
'Called when the Plugin is started
SUB Plugin_Initialize
s=RegValueExists(sP)
if s=true then
f=RegReadValue(sP)
if f=0 then
Call SetUIElement(1,true)
else
Call SetUIElement(1,false)
end if
else
Call SetUIElement(1,true)
end if
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
h=GetUIElement(1)
if h=true then
g=RegValueExists(sP)
if g=true then
Call RegWriteValue(sP,0,2)
end if
else
Call RegWriteValue(sP,1,2)
end if
Call Restart()
END SUB
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB